<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="utf-8">
  

  
  <title>Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="学员报名（取消报名）、评价、考试、查看成绩 讲师申请、结课、上传考勤（评价学员） 管理员指定讲师、结算 状态下发、指定讲师、上传附件、 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707">
<meta property="og:type" content="article">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://yoursite.com/2019/05/07/新建文本文档/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="学员报名（取消报名）、评价、考试、查看成绩 讲师申请、结课、上传考勤（评价学员） 管理员指定讲师、结算 状态下发、指定讲师、上传附件、 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2019-05-07T07:10:21.528Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo">
<meta name="twitter:description" content="学员报名（取消报名）、评价、考试、查看成绩 讲师申请、结课、上传考勤（评价学员） 管理员指定讲师、结算 状态下发、指定讲师、上传附件、 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
</head>
</html>
<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-新建文本文档" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2019/05/07/新建文本文档/" class="article-date">
  <time datetime="2019-05-07T07:11:36.510Z" itemprop="datePublished">2019-05-07</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="学员"><a href="#学员" class="headerlink" title="学员"></a>学员</h3><p>报名（取消报名）、评价、考试、查看成绩</p>
<h3 id="讲师"><a href="#讲师" class="headerlink" title="讲师"></a>讲师</h3><p>申请、结课、上传考勤（评价学员）</p>
<h3 id="管理员"><a href="#管理员" class="headerlink" title="管理员"></a>管理员</h3><p>指定讲师、结算</p>
<h3 id="状态"><a href="#状态" class="headerlink" title="状态"></a>状态</h3><p>下发、指定讲师、上传附件、</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">package</span> com.roadtel.service.IndexService;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Service;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"><span class="keyword">import</span> com.roadtel.dao.IndexDao.TraineeIndexDao;</span><br><span class="line"><span class="keyword">import</span> com.roadtel.tools.DataRtn;</span><br><span class="line"><span class="keyword">import</span> com.roadtel.tools.DataRtnPage;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 注释：学员主页</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 张程鹏</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Service</span></span><br><span class="line"><span class="keyword">public</span> <span class="class"><span class="keyword">class</span> <span class="title">TraineeIndexService</span> </span>&#123;</span><br><span class="line"></span><br><span class="line">	<span class="meta">@Autowired</span></span><br><span class="line">	<span class="keyword">private</span> TraineeIndexDao traineeIndexDao;</span><br><span class="line"></span><br><span class="line">	<span class="comment">/**</span></span><br><span class="line"><span class="comment">	 * 注释：参训提醒</span></span><br><span class="line"><span class="comment">	 * </span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@author</span> 张程鹏</span></span><br><span class="line"><span class="comment">	 */</span></span><br><span class="line">	<span class="meta">@RequestMapping</span>(<span class="string">"trainee/trainPlanNotice.html"</span>)</span><br><span class="line">	<span class="function"><span class="keyword">public</span> DataRtn <span class="title">trainPlanNotice</span><span class="params">(String username)</span> </span>&#123;</span><br><span class="line"></span><br><span class="line">		<span class="keyword">return</span> traineeIndexDao.trainPlanNotice(username);</span><br><span class="line"></span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="comment">/**</span></span><br><span class="line"><span class="comment">	 * 注释：考试提醒</span></span><br><span class="line"><span class="comment">	 * </span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@author</span> 张程鹏</span></span><br><span class="line"><span class="comment">	 */</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> DataRtn <span class="title">examNotice</span><span class="params">(String username)</span> </span>&#123;</span><br><span class="line"></span><br><span class="line">		<span class="keyword">return</span> traineeIndexDao.examNotice(username);</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="comment">/**</span></span><br><span class="line"><span class="comment">	 * 注释：根据登录名获取实训角色</span></span><br><span class="line"><span class="comment">	 * </span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@author</span> 张程鹏</span></span><br><span class="line"><span class="comment">	 */</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> DataRtn <span class="title">getTrainRoleByUsername</span><span class="params">(String username)</span> </span>&#123;</span><br><span class="line"></span><br><span class="line">		<span class="keyword">return</span> traineeIndexDao.getTrainRoleByUsername(username);</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="comment">/**</span></span><br><span class="line"><span class="comment">	 * 注释：获得培训计划相关信息</span></span><br><span class="line"><span class="comment">	 * </span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@param</span> pageSize</span></span><br><span class="line"><span class="comment">	 *            每页显示多少条</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@param</span> currentPage</span></span><br><span class="line"><span class="comment">	 *            当前页</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@param</span> starttime</span></span><br><span class="line"><span class="comment">	 *            培训时间</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@param</span> publishTime</span></span><br><span class="line"><span class="comment">	 *            发布时间</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@param</span> teacherName</span></span><br><span class="line"><span class="comment">	 *            讲师名字</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment">	 */</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> DataRtnPage <span class="title">getTrainingPlanInfo</span><span class="params">(<span class="keyword">int</span> pageSize, <span class="keyword">int</span> currentPage,</span></span></span><br><span class="line"><span class="function"><span class="params">			String employess_number, String isOver)</span> </span>&#123;</span><br><span class="line">		<span class="comment">// return</span></span><br><span class="line">		<span class="comment">// traineeIndexDao.getTrainingPlanInfo(pageSize,currentPage,employess_number,isOver);</span></span><br><span class="line">		<span class="keyword">return</span> traineeIndexDao.findTrainingPlanInfo(pageSize, currentPage,</span><br><span class="line">				employess_number, isOver);</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="comment">/**</span></span><br><span class="line"><span class="comment">	 * 注释：取消报名</span></span><br><span class="line"><span class="comment">	 * </span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@author</span> 张程鹏</span></span><br><span class="line"><span class="comment">	 */</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> DataRtn <span class="title">cancelJoinTrainPlan</span><span class="params">(String username, String train_id)</span> </span>&#123;</span><br><span class="line">		<span class="keyword">return</span> traineeIndexDao.cancelJoinTrainPlan(username, train_id);</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="comment">/**</span></span><br><span class="line"><span class="comment">	 * 获取练习卷</span></span><br><span class="line"><span class="comment">	 * </span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@author</span> 廖权名</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@Date</span> 2019-4-17 下午04:28:34</span></span><br><span class="line"><span class="comment">	 */</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> DataRtn <span class="title">findPracticepaperByTrainingId</span><span class="params">(String trainingPlanId)</span> </span>&#123;</span><br><span class="line"></span><br><span class="line">		<span class="keyword">return</span> traineeIndexDao.findPracticepaperByTrainingId(trainingPlanId);</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="comment">/**</span></span><br><span class="line"><span class="comment">	 * 获取参训信息</span></span><br><span class="line"><span class="comment">	 * </span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@author</span> 廖权名</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@param</span> pageSize</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@param</span> currentPage</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@param</span> employessId</span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment">	 * <span class="doctag">@Date</span> 2019-4-25 上午11:27:58</span></span><br><span class="line"><span class="comment">	 */</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> DataRtnPage <span class="title">findJoinMessage</span><span class="params">(<span class="keyword">int</span> pageSize,</span></span></span><br><span class="line"><span class="function"><span class="params">			<span class="keyword">int</span> currentPage, String employessNumber)</span> </span>&#123;</span><br><span class="line">		String employessId=traineeIndexDao.getIdByUsername(employessNumber);</span><br><span class="line">		<span class="keyword">return</span> traineeIndexDao.findJoinMessage(pageSize,currentPage,employessId);</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2019/05/07/新建文本文档/" data-id="cjvdghfs400031cvmzehzejq6" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
  
    <a href="/2019/05/07/hello-world3/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">Hello World</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/05/">May 2019</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2019/05/07/新建文本文档/">(no title)</a>
          </li>
        
          <li>
            <a href="/2019/05/07/hello-world3/">Hello World</a>
          </li>
        
          <li>
            <a href="/2019/05/07/hello-world2/">Hello World</a>
          </li>
        
          <li>
            <a href="/2019/05/06/hello-world/">Hello World</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2019 John Doe<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>



  </div>
</body>
</html>